package com.by.common.token;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.UUID;

@SuppressWarnings("all")
@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    private final long DEFAULT_TIME = 30 * 60 * 1000;  //默认30分钟有效期


   private long validTime = DEFAULT_TIME;
   private String secret = UUID.randomUUID().toString(); //密钥

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
